.class public final Lnbisdk/rs;
.super Lnbisdk/gb;


# instance fields
.field private q:Lnbisdk/hd;

.field private yA:Lnbisdk/n;

.field private yB:Lnbisdk/kc;

.field private yC:Ljava/util/Vector;

.field private yD:Lnbisdk/gj;


# direct methods
.method constructor <init>(Lnbisdk/n;Lnbisdk/gj;Lnbisdk/kc;)V
    .locals 1

    invoke-direct {p0}, Lnbisdk/gb;-><init>()V

    iput-object p1, p0, Lnbisdk/rs;->yA:Lnbisdk/n;

    iput-object p3, p0, Lnbisdk/rs;->yB:Lnbisdk/kc;

    iput-object p2, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-virtual {p1}, Lnbisdk/n;->z()Lnbisdk/hd;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/rs;->q:Lnbisdk/hd;

    return-void
.end method


# virtual methods
.method public final a(Lnbisdk/dz;)V
    .locals 2

    invoke-super {p0, p1}, Lnbisdk/gb;->a(Lnbisdk/dz;)V

    iget-object v0, p0, Lnbisdk/rs;->yB:Lnbisdk/kc;

    iget-object v1, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-interface {v0, v1}, Lnbisdk/kc;->onRequestCancelled(Lcom/navbuilder/nb/b;)V

    iget-object v0, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-virtual {v0}, Lnbisdk/gj;->clear()V

    return-void
.end method

.method public final a(Lnbisdk/dz;I)V
    .locals 2

    invoke-super {p0, p1, p2}, Lnbisdk/gb;->a(Lnbisdk/dz;I)V

    iget-object v0, p0, Lnbisdk/rs;->yB:Lnbisdk/kc;

    iget-object v1, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-interface {v0, p2, v1}, Lnbisdk/kc;->onRequestProgress(ILcom/navbuilder/nb/b;)V

    return-void
.end method

.method public final a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V
    .locals 2

    invoke-super {p0, p1, p2}, Lnbisdk/gb;->a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V

    iget-object v0, p0, Lnbisdk/rs;->yB:Lnbisdk/kc;

    iget-object v1, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-interface {v0, p2, v1}, Lnbisdk/kc;->onRequestError(Lcom/navbuilder/nb/NBException;Lcom/navbuilder/nb/b;)V

    iget-object v0, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-virtual {v0}, Lnbisdk/gj;->clear()V

    return-void
.end method

.method public final a(Lnbisdk/dz;Lnbisdk/fk;)V
    .locals 4

    const-string v0, "sliceres"

    invoke-static {p2, v0}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v0

    new-instance v1, Lnbisdk/hd;

    invoke-direct {v1}, Lnbisdk/hd;-><init>()V

    const-string v2, "start"

    invoke-static {v0, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v2

    long-to-int v2, v2

    invoke-virtual {v1, v2}, Lnbisdk/hd;->setStart(I)V

    const-string v2, "end"

    invoke-static {v0, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v2

    long-to-int v2, v2

    invoke-virtual {v1, v2}, Lnbisdk/hd;->setEnd(I)V

    const-string v2, "total"

    invoke-static {v0, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v2

    long-to-int v0, v2

    invoke-virtual {v1, v0}, Lnbisdk/hd;->setTotal(I)V

    iput-object v1, p0, Lnbisdk/rs;->q:Lnbisdk/hd;

    new-instance v0, Ljava/util/Vector;

    invoke-virtual {p2}, Lnbisdk/fk;->getChildCount()I

    move-result v1

    invoke-direct {v0, v1}, Ljava/util/Vector;-><init>(I)V

    iput-object v0, p0, Lnbisdk/rs;->yC:Ljava/util/Vector;

    const-string v0, "locmatch"

    invoke-virtual {p2, v0}, Lnbisdk/fk;->V(Ljava/lang/String;)Ljava/util/Enumeration;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/fk;

    iget-object v2, p0, Lnbisdk/rs;->yC:Ljava/util/Vector;

    invoke-static {v0}, Lnbisdk/ca;->d(Lnbisdk/fk;)Lnbisdk/np;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    goto :goto_0

    :cond_0
    new-instance v0, Lnbisdk/jv;

    invoke-direct {v0}, Lnbisdk/jv;-><init>()V

    iget-object v1, p0, Lnbisdk/rs;->yC:Ljava/util/Vector;

    invoke-virtual {v0, v1}, Lnbisdk/jv;->h(Ljava/util/Vector;)V

    iget-object v1, p0, Lnbisdk/rs;->q:Lnbisdk/hd;

    invoke-virtual {v0, v1}, Lnbisdk/jv;->a(Lnbisdk/hd;)V

    iget-object v1, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-virtual {v1}, Lnbisdk/gj;->clear()V

    iget-object v1, p0, Lnbisdk/rs;->yB:Lnbisdk/kc;

    iget-object v2, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-interface {v1, v0, v2}, Lnbisdk/kc;->a(Lnbisdk/jv;Lnbisdk/nb;)V

    iget-object v0, p0, Lnbisdk/rs;->yB:Lnbisdk/kc;

    iget-object v1, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-interface {v0, v1}, Lnbisdk/kc;->onRequestComplete(Lcom/navbuilder/nb/b;)V

    return-void
.end method

.method public final a(Lnbisdk/ri;)V
    .locals 5

    new-instance v0, Lnbisdk/ri;

    const-string v1, "address"

    invoke-direct {v0, v1}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v0}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    iget-object v1, p0, Lnbisdk/rs;->yA:Lnbisdk/n;

    invoke-virtual {v1}, Lnbisdk/n;->y()Lnbisdk/so;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/so;->getAirport()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1}, Lnbisdk/so;->getType()I

    move-result v3

    const/4 v4, 0x3

    if-ne v3, v4, :cond_2

    const-string v3, "type"

    const-string v4, "airport"

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v2, :cond_0

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v3

    if-nez v3, :cond_1

    :cond_0
    invoke-virtual {v1}, Lnbisdk/so;->getAreaName()Ljava/lang/String;

    move-result-object v2

    :cond_1
    :goto_0
    const-string v3, "sa"

    invoke-virtual {v1}, Lnbisdk/so;->getAddress()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v3, "xstr"

    invoke-virtual {v1}, Lnbisdk/so;->getCrossStreet()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v3, "str"

    invoke-virtual {v1}, Lnbisdk/so;->getStreet()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v3, "city"

    invoke-virtual {v1}, Lnbisdk/so;->getCity()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v3, "state"

    invoke-virtual {v1}, Lnbisdk/so;->getState()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v3, "postal"

    invoke-virtual {v1}, Lnbisdk/so;->getPostalCode()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v3, "airport"

    invoke-static {v2}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v3, v2}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "county"

    invoke-virtual {v1}, Lnbisdk/so;->getCounty()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v2, v3}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "country"

    invoke-virtual {v1}, Lnbisdk/so;->getCountry()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v2, v1}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lnbisdk/rs;->q:Lnbisdk/hd;

    new-instance v1, Lnbisdk/ri;

    const-string v2, "sliceres"

    invoke-direct {v1, v2}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    const-string v2, "start"

    invoke-virtual {v0}, Lnbisdk/hd;->getStart()I

    move-result v3

    invoke-static {v1, v2, v3}, Lnbisdk/lr;->a(Lnbisdk/ri;Ljava/lang/String;I)V

    const-string v2, "end"

    invoke-virtual {v0}, Lnbisdk/hd;->getEnd()I

    move-result v3

    invoke-static {v1, v2, v3}, Lnbisdk/lr;->a(Lnbisdk/ri;Ljava/lang/String;I)V

    const-string v2, "total"

    invoke-virtual {v0}, Lnbisdk/hd;->getTotal()I

    move-result v0

    invoke-static {v1, v2, v0}, Lnbisdk/lr;->a(Lnbisdk/ri;Ljava/lang/String;I)V

    invoke-virtual {p1, v1}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    return-void

    :cond_2
    invoke-virtual {v1}, Lnbisdk/so;->getType()I

    move-result v3

    const/16 v4, 0x9

    if-ne v3, v4, :cond_4

    const-string v3, "type"

    const-string v4, "freeform"

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1}, Lnbisdk/so;->getFreeform()Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_3

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v4

    if-ltz v4, :cond_3

    const-string v4, "freeform"

    invoke-static {v0, v4, v3}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_3
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Value for freeform search cannot be empty"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    invoke-virtual {v1}, Lnbisdk/so;->getCrossStreet()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_5

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_5

    const-string v3, "type"

    const-string v4, "intersect"

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_5
    const-string v3, "type"

    const-string v4, "street"

    invoke-static {v0, v3, v4}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0
.end method

.method public final b(Lnbisdk/dz;)V
    .locals 2

    invoke-super {p0, p1}, Lnbisdk/gb;->b(Lnbisdk/dz;)V

    iget-object v0, p0, Lnbisdk/rs;->yB:Lnbisdk/kc;

    iget-object v1, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-interface {v0, v1}, Lnbisdk/kc;->onRequestTimedOut(Lcom/navbuilder/nb/b;)V

    iget-object v0, p0, Lnbisdk/rs;->yD:Lnbisdk/gj;

    invoke-virtual {v0}, Lnbisdk/gj;->clear()V

    return-void
.end method

.method protected final getType()Ljava/lang/String;
    .locals 1

    const-string v0, "geocode"

    return-object v0
.end method
